package com.xiaoma.thread.wait.productcustomer;

/**
 * @author maj
 * @ClassName Consumer
 * @Description
 * @date 2020-09-12 13:54
 */
public class Consumer implements Runnable{

  private SynStack ss = null;

  public Consumer(SynStack ss)
  {
    this.ss = ss;
  }

  public void run() {
    for (int i = 0; i < 10; ++i) {
            /*try{
            Thread.sleep(100);
            }
            catch (Exception e){
            }*/

      //System.out.printf("%c\n", ss.pop());
      ss.pop();
    }
  }
  }
